{% extends "base.html" %}
{% set title = _('Switch language') %}
{% set crumbs = [(None, title)] %}
{% set styles = ('locale-switcher',) %}
{% block breadcrumbs %}{% endblock %}

{% block content %}
  <section id="switch-locales" class="grid_12">
    <h1>{{ title }}</h1>
    <ul>
      {% for locale in settings.LANGUAGE_CHOICES %}
        {% set locale_link_elem %}
          <a lang="{{ locale[0] }}" hreflang="{{ locale[0] }}"
            href="{{ next_url|urlparams(lang=locale[0]) }}">{{ locale[1] }}
          </a>
        {% endset %}
        <li>
          {{ locale_link_elem|linkify|safe }}
        </li>
      {% endfor %}
    </ul>
  </section>
{% endblock %}

{% block for_contributors %}{% endblock %}
